Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SetRuntimeEnvironment to all MI Driver and NI-Fake library classes #964

Merged

Conversation

ni-jfitzger
Copy link
Contributor

@ni-jfitzger ni-jfitzger commented Jul 18, 2023

What does this Pull Request accomplish?

Add SetRuntimeEnvironment to the library classes for all MI Drivers and NI-Fake

Implemented via the following changes:

  • Update source/codegen/metadata/<driver>/functions_addon.py to privately add the SetRuntimeEnvironment function for all MI drivers and NI-Fake
  • Update source/codegen/metadata/<driver>/__init__.py so that the new metadata will be merged. I merged metadata for attributes, functions and enums. config_addon.py had overrides that were not in use, so I did not merge them. They are most likely copy-pasta from nimi-python.
  • Regenerate

Although I could include use official metadata exports, now that internal metadata is updated, that may include other changes. This way is more surgical.

Partially addresses #960

Why should this Pull Request be merged?

As developers, we want to know how much nigrpc_device_server is used and which versions.
Adding SetRuntimeEnvironment to our library classes is the first step. It's already been tested for NI-DCPower via #962

What testing has been done?

Tested NI-DCPower via #962

@ni-jfitzger ni-jfitzger merged commit 7d92654 into ni:main Jul 20, 2023
@ni-jfitzger ni-jfitzger deleted the add-SetRuntimeEnvironment-to-metadata branch July 20, 2023 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants